package com.edevp.common.core.exception;

/**
 * 异常码
 *
 * @author Lean
 * @create 2020-03-17 10:23 AM
 **/
public class ExceptionCode {
	/**
	 * system error
	 **/
	public static int SERVER_ERROR =500;

	/**
	 * Unable to connect to redis
	 **/
	public static int REDIS_NOT_CONNECT = 1000019;
	/**
	 * service unavailable
	 **/
	public static int SERVICE_UNAVAILABLE = 1000020;
	/**
	 * resource not found
	 **/
	public static int RESOURCE_NOT_FIND = 404;
	/**
	 *  If the bean validation is failed, it will trigger a MethodArgumentNotValidException.
	 **/
	public static int METHOD_ARGUMENT_NOT_VALID = 1000021;


	/**
	 * access is denied
	 **/
	public static int AUTH_NOT_CREATED = 1000022;
}